package artid.com.arttogo.bean;
/**
 * 扫描保存的iBeacon信息实体类
 */
import java.io.Serializable;
import java.util.List;

public class IBeaconBean implements Serializable {
	private static final long serialVersionUID = 1L;
	private List<IBeaconData> data;

	public List<IBeaconData> getData() {
		return data;
	}
	public void setData(List<IBeaconData> data) {
		this.data = data;
	}
	public IBeaconBean() {
		super();
	}
	public IBeaconBean(List<IBeaconData> data) {
		super();
		this.data = data;
	}
	@Override
	public String toString() {
		return "IBeaconBean [data=" + data + "]";
	}

	public static class IBeaconData implements Serializable {
		private static final long serialVersionUID = 1L;
		private String name;
		private int major;
		private int minor;
		private String proximityUuid;
		private String bluetoothAddress;
		private int txPower;
		private int rssi;
		private long data;//时间戳
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public int getMajor() {
			return major;
		}
		public void setMajor(int major) {
			this.major = major;
		}
		public int getMinor() {
			return minor;
		}
		public void setMinor(int minor) {
			this.minor = minor;
		}
		public String getProximityUuid() {
			return proximityUuid;
		}
		public void setProximityUuid(String proximityUuid) {
			this.proximityUuid = proximityUuid;
		}
		public String getBluetoothAddress() {
			return bluetoothAddress;
		}
		public void setBluetoothAddress(String bluetoothAddress) {
			this.bluetoothAddress = bluetoothAddress;
		}
		public int getTxPower() {
			return txPower;
		}
		public void setTxPower(int txPower) {
			this.txPower = txPower;
		}
		public int getRssi() {
			return rssi;
		}
		public void setRssi(int rssi) {
			this.rssi = rssi;
		}
		public long getData() {
			return data;
		}
		public void setData(long data) {
			this.data = data;
		}
		public IBeaconData() {
			super();
		}
		public IBeaconData(String name, int major, int minor,
						   String proximityUuid, String bluetoothAddress, int txPower,
						   int rssi, long data) {
			super();
			this.name = name;
			this.major = major;
			this.minor = minor;
			this.proximityUuid = proximityUuid;
			this.bluetoothAddress = bluetoothAddress;
			this.txPower = txPower;
			this.rssi = rssi;
			this.data = data;
		}
		@Override
		public String toString() {
			return "IBeaconData [name=" + name + ", major=" + major
					+ ", minor=" + minor + ", proximityUuid=" + proximityUuid
					+ ", bluetoothAddress=" + bluetoothAddress + ", txPower="
					+ txPower + ", rssi=" + rssi + ", data=" + data + "]";
		}
	}
}
